package com.zzuli.ylsystem.dao;

import com.zzuli.ylsystem.entity.Linkcontent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface LinkcontentDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Linkcontent record);

    int insertSelective(Linkcontent record);

    Linkcontent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Linkcontent record);

    int updateByPrimaryKey(Linkcontent record);

    @Update("update linkcontent set sign='1' where id=#{id}")
    void updateById(Integer id);

    @Select("select * from linkcontent where sign='1'")
    List<Linkcontent> allShouCang();
}